package com.ywq.app.biz;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ywq.app.domain.ArtActivity;
import com.ywq.app.domain.ArtBack;
import com.ywq.app.domain.ArtOrders;
import com.ywq.app.domain.ArtProcessLog;
import com.ywq.app.domain.MemberAddress;
import com.ywq.app.domain.MemberBank;
import com.ywq.app.domain.MemberHas;
import com.ywq.app.domain.MemberHobby;
import com.ywq.app.domain.MemberSecurity;
/*import cn.sumpu.app.coolsk.domain.CardNum;
import cn.sumpu.app.coolsk.domain.Keep;
import cn.sumpu.app.coolsk.domain.Member;
import cn.sumpu.app.coolsk.domain.MemberDetail;
import cn.sumpu.app.coolsk.domain.MemberTicker;
import cn.sumpu.app.coolsk.exception.AppBusinessException;
import cn.sumpu.toolkit.common.page.PageModel;
import cn.sumpu.toolkit.weibo.AccessUser;*/
import com.ywq.app.domain.Member;
import com.ywq.common.exception.AppBusinessException;
import com.ywq.common.page.PageModel;



public interface MemberBiz {
	//注册
	public Member register(String emailPath,Member member)throws AppBusinessException;
	//登陆
	public String login(HttpServletRequest request,HttpServletResponse response)throws AppBusinessException;
	

	public Member getMemberByNick(String pwd, String nickname)throws AppBusinessException;

	public Member getMemberByEmail(String pwd, String email)throws AppBusinessException;

	public Member getMemberByPhone(String pwd, String phone)throws AppBusinessException;

	public void update(Member member)throws AppBusinessException;

	public Member getMemberEmail(String email)throws AppBusinessException;

	public Member getMemberNickName(String nickname)throws AppBusinessException;

	public Member getMemberPhone(String phone)throws AppBusinessException;

	public Member IsRegister(String loginType,String loginPwd)throws AppBusinessException;
	
	
	public Member getMemberById(String member)throws AppBusinessException;
	
	public Boolean checkMemberLogin(HttpServletRequest request)throws AppBusinessException;

	Integer getMemberListCount(String nickname, String startTime, String endTime)throws Exception;
	
	public List<ArtOrders> getOrdersListByMemberId(Map<String,Object> map) throws Exception;
	
	public PageModel getOrdersById(Integer page,String memberId,String type) throws AppBusinessException;
	
	public PageModel getActivityById(Integer page,String memberId) throws AppBusinessException;
	
	public void insertMemberHas(MemberHas memberHas ) throws AppBusinessException;
	
	public void deleteMemberHas(String hasId ) throws AppBusinessException;
	
	public List<ArtActivity> formatTime(List<ArtActivity> aList) throws AppBusinessException;
	
	public void noJoinActivity(String acId ,String memberId) throws AppBusinessException ;
	
	public void unLockAccount(String memberId)throws AppBusinessException;
	
	public void lockAccount(String memberId)throws AppBusinessException;
	
	public void insertMemberBank(MemberBank memberBank)throws AppBusinessException;
	
	public void updateBankDefault(String memberId)throws AppBusinessException;
	
	public void deleteMemberBank(String bankId)throws AppBusinessException;
	
	public void noAllBankDefault(String memberId)throws AppBusinessException;
	
	public List<MemberBank> getBankLiatByMemberId(String memberId)throws AppBusinessException;
	
	public void insertMemberAddress(MemberAddress memberAddress)throws AppBusinessException;
	
	public List<MemberAddress> getAddressListByMemberId(String memberId)throws AppBusinessException;
	
	public void updateMemberAddress(MemberAddress memberAddress)throws AppBusinessException;
	
	public MemberAddress getAddressByaId(String aId)throws AppBusinessException;
	
	public ArtOrders getOrdersById(String oid) throws AppBusinessException;
	
	public void updateOrders(Map<String, Object> map)throws AppBusinessException;
	
	public List<MemberHas>getHasList(Map<String, Object> map)throws AppBusinessException;
	
	public PageModel getMemberMode(Integer page,Integer pageSize,String name)throws AppBusinessException;
	
	public void insertMemberHobby(MemberHobby memberHobby)throws AppBusinessException;
	
	public void deleteMemberHobby(String memberId)throws AppBusinessException;
	
	public List<MemberHobby> getHobbyListByMemberId(String memberId)throws AppBusinessException;
	
	public void deleteComment(String commentId)throws AppBusinessException;
	
	public void payAlipaySuc(String ordersId)throws AppBusinessException ;
	
	public int getCountThity(String memberId)throws AppBusinessException;
	
	public void insertMemberSecurity(MemberSecurity memberSecurity ) throws AppBusinessException;
	
	public PageModel getMemberSecurity(Integer page,Integer pageSize)throws AppBusinessException;
	
	public String insertMemberPay(MemberSecurity memberSecurity ) throws AppBusinessException;
	
	public MemberSecurity getMemberSecurity(String id) throws AppBusinessException;
	
	public void updateResetAccount(String id, float artAccount)throws AppBusinessException;
	
	public void updateMemberEnabled(String id)throws AppBusinessException;
	
	public void updateSecurityMoney(Member member)throws AppBusinessException;
	
	public void insertArtBack(ArtBack artBack ) throws AppBusinessException;
	
	public void insertArtProcessLog(ArtProcessLog artProcessLog ) throws AppBusinessException;
	
	public void updateArtBack(ArtBack artBack,ArtProcessLog artProcessLog) throws AppBusinessException;
	
	public PageModel memberBackListGrid(Integer page,Integer pageSize)throws AppBusinessException;
	
	public void insertBackLog(String id,String memberId)throws AppBusinessException;
	
	public List<ArtProcessLog> getProcessList(String id)throws AppBusinessException;
	
	public void updateBackOrders(String oId,String backStatus ,String content) throws AppBusinessException ;
	
	public ArtProcessLog getArtProcessLogByRef(String id,String backStatus)throws AppBusinessException;
	
	public ArtBack getArtBackByOid(String oid) throws AppBusinessException;
	
	
	
}
